package com.training.java.core.junit;

import junit.framework.TestCase;

import org.junit.Test;

public class CalculatorDemo {

	@Test
	public void testAdd()

	{
		Calculator calc = new Calculator();
		int result = calc.add(6, 6);
		TestCase.assertEquals(12, result);
	}

	@Test
	public void testSubtract() {
		Calculator calc = new Calculator();
		int result = calc.subtract(3, 2);
		TestCase.assertEquals(1, result);
	}

	@Test
	public void testDivide() {
		Calculator calc = new Calculator();
		int result = calc.divide(5, 3);
		TestCase.assertEquals(1, result);
	}

	@Test
	public void testMultiply()

	{
		Calculator calc = new Calculator();
		int result = calc.multiply(3, 2);
		TestCase.assertEquals(6, result);

	}
}
